<template>
  <ww-open-data :openid="openid" :type="type" />
</template>
<script>
  export default {
    name: 'WWOpenData',
    props: { type: string, openid: string },
    watch: {
      openid() {
        this.$nextTick(() => {
          window.WWOpenData.bind(this.$el)
        })
      },
    },
    mounted() {
      window.WWOpenData.bind(this.$el)
    },
  }
</script>
